package com.xingda.packing.dmss.minitor.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xingda.packing.dmss.events.dto.EventTriggerAlarmSaveDto;
import com.xingda.packing.dmss.minitor.dto.PkAlarmDto;
import com.xingda.packing.dmss.minitor.entity.PkAlarmHistory;

import java.util.List;

public interface IPkAlarmHistoryService extends IService<PkAlarmHistory> {

    List<PkAlarmDto> getList(int area);

    /**
     * @param alarmTriggerType 报警触发类型
     * @param trigger          触发 true表示报警,false表示解除报警
     */
    void saveTriggerAlarm(EventTriggerAlarmSaveDto eventTriggerAlarmSaveDto);
}
